package com.hawthorn.admin.service.sysdict;

import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.Map;

/**
 * <p>todo 字典管理接口</p>
 * @author: guohao | 2607728024@qq.com
–
 * @created: 2022/7/1 11:35
 * @version v1.0.1
 * @copyright: Copyright (c) 2022 guohao
 */
public interface SysDictService
{

  public IPage<Map<String, Object>> findDictList(String params);

  public IPage<Map<String, Object>> findChildListByParent(String params);

  public Map<String, Object> updateDictParent(Long parent, Map<String, Object> param);

  public Map<String, Object> saveDictParent(Map<String, Object> param);

  public boolean removeDictParent(Long parent);

  public Map<String, Object> updateDictChild(Long id, Map<String, Object> param);

  public Map<String, Object> saveDictChild(Map<String, Object> param);

  public boolean removeChildDict(Long id, String dicType, String dicCode);
}
